import 'animate.css';
import Antd from 'ant-design-vue';

import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import 'uno.css';
import { createApp } from 'vue';
import App from './App.vue';
import i18n, { fetchTranslateFile } from './i18';
import router from './router';
import './style/index.scss';

const app = createApp(App);

const pinia = createPinia();

pinia.use(piniaPluginPersistedstate);

const bootstrap = async () => {
  await fetchTranslateFile();

  app.use(i18n);

  app.use(Antd);

  app.use(router);

  app.use(pinia);

  app.mount('#app');
};

bootstrap();
